<!DOCTYPE html>
<html>
<head>
<include file="Include:meta" />
<title>市场信息联网总览-目的地运营集团数据管理平台</title>
<include file="Include:style" />
</head>
<body>
<include file="Include:header" />
<include file="Include:left" />
<div id="main">
	<div class="crumbs">
		<div class="crumbs-text">市场信息联网总览</div>
		<div class="right">
			<div class="input-group left w200">
		    	<input type="text" id="keyword" value="{$keyword}" class="form-control" placeholder="按市场信息编号/名称搜索" autocomplete="off">
	    		<span class="input-group-btn">
	        		<button class="btn found_btn" type="button">搜索</button>
		    	</span>
		    </div>
		</div>
	</div>
	<div id="content">
		<div class="filter">
			<div class="filter-item">
				<div class="filter-title">所属事业部：</div>
				<ul class="filter-order">
					<!--
					<li <if condition="$syb eq 集团市场整合营销">class="current"</if>>
						<a href="__APP__/Project/customer_information_jc/keyword/{$keyword}/syb/集团市场整合营销">集团市场整合营销</a>
					</li>
					-->
					<li <if condition="$syb eq 智慧经济集团">class="current"</if>>
						<a href="__APP__/Project/customer_information_jc/keyword/{$keyword}/syb/智慧经济集团">智慧经济集团</a>
					</li>
					<li <if condition="$syb eq 目的地集团">class="current"</if>>
						<a href="__APP__/Project/customer_information_jc/keyword/{$keyword}/syb/目的地集团">目的地集团</a>
					</li>
					<!--
					<li <if condition="$syb eq 驴妈妈集团">class="current"</if>>
						<a href="__APP__/Project/customer_information_jc/keyword/{$keyword}/syb/驴妈妈集团" >驴妈妈集团</a>
					</li>
					-->
				</ul>
			</div>
			<if condition="$syb eq 驴妈妈集团">
			<div class="filter-item">
				<div class="filter-title">所属中心:</div>
				<ul class="filter-order">
					<li <if condition="$gs eq -10">class="current"</if>>
						<a href="__APP__/Project/customer_information_jc/keyword/{$keyword}/syb/{$syb}/gs/-10">全部</a>
					</li>
					<li <if condition="$gs eq '全球采购中心'">class="current"</if>>
						<a href="__APP__/Project/customer_information_jc/keyword/{$keyword}/syb/{$syb}/gs/全球采购中心">全球采购中心</a>
					</li>
					<li <if condition="$gs eq '整合营销事业部'">class="current"</if>>
						<a href="__APP__/Project/customer_information_jc/keyword/{$keyword}/syb/{$syb}/gs/整合营销事业部">整合营销事业部</a>
					</li>
				</ul>
			</div>
			<elseif condition="$syb eq 集团市场整合营销" />
			<div class="filter-item">
				<div class="filter-title">所属中心:</div>
				<ul class="filter-order">
					<li <if condition="$gs eq -10">class="current"</if>>
						<a href="__APP__/Project/customer_information_jc/keyword/{$keyword}/syb/集团市场整合营销/gs/-10">全部</a>
					</li>
					<foreach name="center_types" item="vo" key="k">
					<li <if condition="$gs eq $vo['id']">class="current"</if>>
						<a href="__APP__/Project/customer_information_jc/keyword/{$keyword}/syb/{$syb}/gs/{$vo['id']}">{$vo['second_name']}</a>
					</li>
					</foreach>
				</ul>
			</div>
			</if>
		</div>
		<div class="table-scrollx">
			<table class="table table-bordered table-hover">
				<tr class="table-header fixed-table-header">
					<td class="width100">市场信息编号</td>
					<td>市场信息名称</td>
					<td>获悉渠道</td>
					<td>启动日期</td>
					<td>跟进信息编号</td>
					<td>跟进人</td>
					<td>技术负责人</td>
					<td>
					<if condition="$syb eq '目的地集团'">
						<select class="stage" style="width:120px;">
							<option value="-10" <if condition="-10 eq $stage">selected</if>>项目阶段</option>
							<option value="前期推进" <if condition="'前期推进' eq $stage">selected</if>>前期推进</option>
							<option value="签订框架协议" <if condition="'签订框架协议' eq $stage">selected</if>>签订框架协议</option>
							<option value="已签约" <if condition="'已签约' eq $stage">selected</if>>已签约</option>
							<option value="首款已到" <if condition="'首款已到' eq $stage">selected</if>>首款已到</option>
						</select>
					<else />
						<if condition="$syb neq 驴妈妈集团">
						<select class="stage w100">
							<option value="-10" <if condition="-10 eq $stage">selected</if>>项目阶段</option>
							<option value="初步判断" <if condition="'初步判断' eq $stage">selected</if>>初步判断</option>
							<option value="商务谈判" <if condition="'商务谈判' eq $stage">selected</if>>商务谈判</option>
							<option value="商务签约" <if condition="'商务签约' eq $stage">selected</if>>商务签约</option>
							<option value="已完结" <if condition="'已完结' eq $stage">selected</if>>已完结</option>
						</select>
						<else />
						项目阶段
						</if>
					</if>
					</td>
					<td>添加日期</td>
				</tr>
				<if condition="$result eq NULL">
				<tr>
					<td colspan="10" class="text-center">暂无相关内容</td>
				</tr>
				</if>
				<if condition="$syb neq '集团市场整合营销'">
				<foreach name="result" item="vo">
				<tr>
					<td>
						<a href="__APP__/Project/customer_information_detail/id/{$vo['id']}/syb/{$syb}/s_type/{$vo['s_type']}" class="js_look">{$vo['project_num']}</a>
					</td>
					<td>{$vo['project_name']}</td>
					<td>{$vo['channel']}</td>
					<td>{$vo['start_date']}</td>
					<td>
						<if condition="$syb eq 目的地集团 or $gs eq 目的地集团 or $vo['syb'] eq 目的地集团">
							<a href="__APP__/Project/project_situation/id/{$vo['stage']['id']}" target="_blank">{$vo['stage']['project_num']}</a>
						<else/>
							{$vo['stage']['project_num']}
						</if>
					</td>
					<td>{$vo['stage']['manager_name']}</td>
					<td>{$vo['stage']['director_name']}</td>
					<td>{$vo['stage']['stage_name']}</td>
					<td>{$vo['stage']['add_date']|substr=0,10}</td>
				</tr>
				</foreach>
				<else />
				<foreach name="result" item="vo">
					<if condition="$vo['stage'] neq NULL">
					<foreach name="vo['stage']" item="wo" key="kk">
					<tr>
						<if condition="$kk eq 0">
							<td rowspan="{$vo['ct']}">
								<a href="__APP__/Project/customer_information_detail/id/{$vo['id']}/syb/{$syb}" class="js_look">{$vo['project_num']}</a>
							</td>
							<td rowspan="{$vo['ct']}">{$vo['project_name']}</td>
							<td rowspan="{$vo['ct']}">{$vo['channel']}</td>
							<td rowspan="{$vo['ct']}">{$vo['start_date']}</td>
						</if>
						<td>
							<if condition="$syb eq 目的地集团 or $gs eq 目的地集团 or $vo['syb'] eq 目的地集团">
								<a href="__APP__/Project/project_situation/id/{$wo['id']}" target="_blank">{$wo['project_num']}</a>
							<else/>
								{$wo['project_num']}
							</if>
						</td>
						<td>{$wo['manager_name']}</td>
						<td>{$wo['director_name']}</td>
						<td>{$wo['stage_name']}</td>
						<td>{$wo['add_date']|substr=0,10}</td>
					</tr>
					</foreach>
					<else />
					<tr>
					<td>
						<a href="__APP__/Project/customer_information_detail/id/{$vo['id']}/syb/{$syb}" class="js_look">{$vo['project_num']}</a>
					</td>
					<td>{$vo['project_name']}</td>
					<td>{$vo['channel']}</td>
					<td>{$vo['start_date']}</td>
					<td></td><td></td><td></td><td></td><td></td></tr>
					</if>
				</foreach>
				</if>
			</table>
		</div>
		<div class="pages">{$page}</div>
	</div>
</div>
<include file="Include:javascript" />
<script type="text/javascript">
$(function(){
	//搜索
	$(".found_btn").keywordSearch("__APP__/Project/customer_information_jc/keyword/$keyword/syb/{$syb}/gs/{$gs}");
	
	$(".stage").change(function(){
		var val = $(this).val();
		window.location.href = "__APP__/Project/customer_information_jc/keyword/{$keyword}/syb/{$syb}/gs/{$gs}/stage/"+val;
	});
	$(document).on("change","[name='channel']",function(){
		var val = $(this).val();
		window.location.href="__APP__/Project/customer_information_jc/center_ids/{$center_ids}/keyword/{$keyword}/channel/"+val+"/effective/{$effective}";
	});
	

});
</script>
</body>
</html>